package com.wstro.model;

import javax.net.ssl.X509TrustManager;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;

/**
 * 创建者 haogm
 * @author haogm
 * 描述:
 * 版权：江苏神彩科技股份有限公司
 * 路径: wstro-com.wstro.model-MyX509TrustManager
 * 创建日期: 2021/8/12 20:43
 * 版本: V1.0
 */
public class MyX509TrustManager implements X509TrustManager {

    /**
     * 检查客户端证书
     */
    @Override
    public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {
    }

    /**
     * 检查服务器端证书
     */
    @Override
    public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {
    }

    /**
     * 返回受信任的X509证书数组
     */
    @Override
    public X509Certificate[] getAcceptedIssuers() {
        return null;
    }

}